import { AddRouteRecordRaw } from './index'
import {
  Home,
  Person,
  PeopleSharp,
  Settings,
  BookmarkOutline
} from '@vicons/ionicons5'

const pages: AddRouteRecordRaw[] = [
  {
    path: '/index',
    name: 'index',
    component: () => import('@/views/dashboard/dashboard.vue'),
    meta: {
      title: 'msg.home',
      keepAlive: false,
      icon: Home
    }
  },
  {
    path: '/steam',
    name: 'steam',
    component: () => import('@/layout/views.vue'),
    meta: {
      title: 'msg.steam',
      keepAlive: false,
      icon: Settings
    },
    children: [
      {
        path: '/user',
        name: 'user',
        component: () => import('@/views/steam/user/user.vue'),
        meta: {
          title: 'msg.user',
          keepAlive: false,
          icon: Person
        }
      },
      {
        path: '/role',
        name: 'role',
        component: () => import('@/views/steam/role/role.vue'),
        meta: {
          title: 'msg.role',
          keepAlive: false,
          icon: PeopleSharp
        }
      }
    ]
  },
  {
    path: '/level',
    name: 'level',
    component: () => import('@/layout/views.vue'),
    meta: {
      title: 'msg.menu',
      keepAlive: false,
      icon: Home
    },
    children: [
      {
        path: '/level_one',
        name: 'level_one',
        component: () => import('@/views/levels/one/one.vue'),
        meta: {
          title: 'one'
        }
      },
      {
        path: '/level_two',
        name: 'level_two',
        component: () => import('@/layout/views.vue'),
        meta: {
          title: 'two'
        },
        children: [
          {
            path: '/level_two_1',
            name: 'level_two_1',
            component: () => import('@/views/levels/two/two.vue'),
            meta: {
              title: '二级',
              icon: BookmarkOutline
            }
          }
        ]
      }
    ]
  }
]

export default pages
